﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="cp_employee_manage_OrderDetail" Codebehind="OrderDetail.aspx.cs" %>

<%@ Register assembly="obout_Calendar2_Net" namespace="OboutInc.Calendar2" tagprefix="obout" %>

<%@ Register assembly="obout_Grid_NET" namespace="Obout.Grid" tagprefix="cc1" %>

<%@ Register assembly="obout_Interface" namespace="Obout.Interface" tagprefix="cc11" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Names="Arial" 
        Font-Size="Large" ForeColor="Blue" Text="Chi ti&#7871;t &#273;&#417;n &#273;&#7863;t hàng"></asp:Label>
    <br />
    <br />
    <br />
    <asp:Label ID="Label21" runat="server" BackColor="#FFFFCC" Font-Bold="True" 
        Font-Size="Medium" ForeColor="Blue" Height="20px" Text="Thông tin hóa &#273;&#417;n" 
        Width="585px"></asp:Label>
    <asp:Panel ID="Panel2" runat="server" Height="265px" Width="585px" 
        BackImageUrl="~/images/Panel20.jpg">
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label12" runat="server" Text="Mã hóa &#273;&#417;n"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtMaHoaDon" runat="server" Font-Size="Small" 
            Width="50px" Enabled="False"></cc11:OboutTextBox>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label13" runat="server" Text="Ng&#432;&#7901;i &#273;&#7863;t hàng"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtNguoiDatHang" runat="server" Font-Size="Small" 
            Width="150px" Enabled="False"></cc11:OboutTextBox>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label14" runat="server" Text="Ngày &#273;&#7863;t hàng"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtNgayDatHang" runat="server" Font-Size="Small" 
            Width="160px" Enabled="False" ></cc11:OboutTextBox>
        &nbsp;
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label15" runat="server" Text="Ph&#432;&#417;ng th&#7913;c thanh toán"></asp:Label>
        &nbsp;<cc11:OboutDropDownList ID="dlPhuongThucThanhToan" runat="server" 
            FolderStyle="" MenuWidth="220px">
        </cc11:OboutDropDownList>
        &nbsp;
        <asp:Label ID="Label16" runat="server" Text="Ph&#432;&#417;ng th&#7913;c giao hàng"></asp:Label>
        &nbsp;<cc11:OboutDropDownList ID="dlPhuongThucGiaoHang" runat="server" 
            Width="160px" MenuWidth="220px">
        </cc11:OboutDropDownList>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label17" runat="server" Text="T&#7893;ng ti&#7873;n"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtTongTien" runat="server" Font-Size="Small" 
            Width="150px"></cc11:OboutTextBox>
            &nbsp;<asp:Label ID="Label1" runat="server" Text="VND"></asp:Label>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label18" runat="server" Text="Ng&#432;&#7901;i xác nh&#7853;n"></asp:Label>
        &nbsp;<cc11:OboutDropDownList ID="dlNguoiXacNhan" runat="server" MenuWidth="220px">
        </cc11:OboutDropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label19" runat="server" Text="Ngày xác nh&#7853;n"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtNgayXacNhan" runat="server" Font-Size="Small" 
            Width="160px"></cc11:OboutTextBox>
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <script language="javascript">
            function myFunction() {

                var currentTime = new Date()

                var month = currentTime.getMonth() + 1

                var day = currentTime.getDate()

                var year = currentTime.getFullYear()

                var hour = currentTime.getHours()
                if (hour < 10)
                    hour = "0" + hour;

                var minute = currentTime.getMinutes()
                if (minute < 10)
                    minute = "0" + minute;

                var second = currentTime.getSeconds()
                if (second < 10)
                    second = "0" + second;

                var buoi = "SA"
                if (hour > 12) {
                    hour = hour % 12;
                    if (hour < 10)
                        hour = "0" + hour;
                    buoi = "CH";
                }
                var txtNgayXacNhan = document.getElementById('txtNgayXacNhan');
                if (txtNgayXacNhan) {
                    txtNgayXacNhan.value = day + "/" + month + "/" + year + " " + hour + ":" + minute + ":" + second + " " + buoi;
                }

                return false;
            }
        </script>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label20" runat="server" Text="Ghi chú"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtGhiChu" runat="server" Font-Size="Small" 
            Width="440px"></cc11:OboutTextBox>
    </asp:Panel>
    <br />
    <br />
    <asp:Label ID="Label22" runat="server" BackColor="#FFFFCC" Font-Bold="True" 
        Font-Size="Medium" ForeColor="Blue" Height="20px" Text="Thông tin ng&#432;&#7901;i nh&#7853;n" 
        Width="585px"></asp:Label>
    <asp:Panel ID="Panel3" runat="server" Height="125px" Width="585px" 
        BackImageUrl="~/images/Panel21.jpg">
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label23" runat="server" Text="Tên ng&#432;&#7901;i nh&#7853;n"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtTenNguoiNhan" runat="server" Font-Size="Small" 
            Width="150px"></cc11:OboutTextBox>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label24" runat="server" Text="S&#7889; &#273;i&#7879;n tho&#7841;i"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtSoDienThoai" runat="server" Font-Size="Small" 
            Width="150px"></cc11:OboutTextBox>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label25" runat="server" Text="&#272;&#7883;a ch&#7881;"></asp:Label>
        &nbsp;<cc11:OboutTextBox ID="txtDiaChi" runat="server" Font-Size="Small" 
            Width="477px"></cc11:OboutTextBox>
    </asp:Panel>
    <br />
    <br />
    <asp:Label ID="Label11" runat="server" BackColor="#FFFFCC" Font-Bold="True" 
        Font-Size="Medium" ForeColor="Blue" Height="20px" Text="Danh sách các s&#7843;n ph&#7849;m" 
        Width="585px"></asp:Label>
    <br />
    <asp:Panel ID="Panel1" runat="server" Width="585px">
        <cc1:Grid ID="Grid1" runat="server" EnableRecordHover="True" AutoGenerateColumns="false">
            <Columns>
                <cc1:Column DataField="ID" Width="50" HeaderText="ID" index="0" runat="server"/>
                <cc1:Column DataField="TenSanPham" HeaderText="Tên S&#7843;n Ph&#7849;m" Width="220" index="1" runat="server"/>
                <cc1:Column DataField="HinhAnh" HeaderText="Hình &#7842;nh" Width="220" index="2" runat="server">
                    <TemplateSettings TemplateID="ImageTemplate" />
                </cc1:Column>
                <cc1:Column DataField="SoLuong" HeaderText="S&#7889; L&#432;&#7907;ng" Width="100" index="3" runat="server"></cc1:Column>
             </Columns>
             
             <Templates>        
                  <cc1:GridTemplate runat="server" ID="ImageTemplate">
                     <Template><img src="/images/HinhAnhSanPham/<%# Container.Value %>" alt="" width="100" height="100" /></Template>
                  </cc1:GridTemplate>        
             </Templates>

        </cc1:Grid>
    </asp:Panel>
    <br />
    
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <cc11:OboutButton ID="btnHuyDonDatHang" runat="server" Text="H&#7911;y &#273;&#417;n &#273;&#7863;t hàng" 
        Width="180px" Font-Bold="True" Font-Size="Small" Height="40px" 
        onclick="btnHuyDonDatHang_Click">
    </cc11:OboutButton>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <cc11:OboutButton ID="btnCapNhapDonDatHang" runat="server" Text="C&#7853;p nh&#7853;p &#273;&#417;n &#273;&#7863;t hàng" 
        Width="180px" Font-Bold="True" Font-Size="Small" Height="40px" 
        onclick="btnCapNhapDonDatHang_Click">
    </cc11:OboutButton>
    <script type="text/javascript">
        function delayRedirect(url) 
        {
            var Timeout = setTimeout("window.location='" + url + "'", 100);
        }
    </script>
</asp:Content>

